/*
* @author dumeng
*/
'use strict'
import request from '@/utils/request'
/**
 * 列表查询
 */
export function queryList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/courseSubjectRelevance/getChapterSubject',
    method: 'POST',
    data
  })
}

/**
 * 新增练习题
 */
 export function courseInsert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/courseQuestionBank/insert',
    method: 'POST',
    data
  })
}

  /**
 * 获取分类树
 */
   export function getClassifyTree(data) {
    return request({
      baseURL: '/API-ENTERPRISE-BACKEND/',
      url: '/backend/learnClassify/getClassifyTree',
      method: 'post',
      data
    })
  }
/**
 * 编辑练习题
 */
 export function courseUpdatet(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/courseQuestionBank/update',
    method: 'POST',
    data
  })
}
/**
 * 删除
 */
export function deleteCourseware(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/courseSubjectRelevance/deleteById',
    method: 'POST',
    data
  })
}

/**
 * 关联课件
 */
export function relevanceSubject(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/courseSubjectRelevance/insertChapter',
    method: 'POST',
    data
  })
}

/**
 * 排序
 */
export function bySort(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/courseInfo/sortRelevance',
    method: 'POST',
    data
  })
}

